package com.project.weather.common;

/**
 * 常量类
 */
public class Constant {
    // Session
    public final static String CURRENT_ACCOUNT = "current_account";

    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    public static final String WEATHERAPIURL = "https://yiketianqi.com/api";
    public static final String WEATHERAPIVERSION1 = "v1";
    public static final String WEATHERAPIVERSION6 = "v6";
    public static final String WEATHERAPIAPPID = "72995786";
    public static final String WEATHERAPIAPPSECRET = "2YAFvwP5";

//    public static final String WEATHERAPIAPPID = "97978999";
//    public static final String WEATHERAPIAPPSECRET = "D9L1TyOE";

    // classList
    public final static String CLASS_LIST = "classList";
    // departmentList
    public final static String DEPARTMENT_LIST = "departmentList";

    //本地服务器-文件,图片所在位置,图片上传位置
//    public static final String UPLOAD_FILE_PATH = "file:C:/Users/18325/Pictures/images/";
//    public static final String UPLOAD_FILE_IMAGE_PATH = "C:/Users/18325/Pictures/images/";

    //云服务器-文件,图片所在位置,图片上传位置
//    public static final String UPLOAD_FILE_PATH = "file:/usr/exam/data/upload/images/";
//    public static final String UPLOAD_FILE_IMAGE_PATH = "/usr/exam/data/upload/images/";

    //默认头像url
    public static final String DEFAULT_AVATAR_IMG_URL = "headimg_placeholder.png";
    //课程默认图片
    public static final String DEFAULT_SUBJECT_IMG_URL = "problemset_default.jpg";

    public static final int subjectPageSize = 16;
    public static final int contestPageSize = 10;
    public static final int questionPageSize = 10;
    public static final int accountPageSize = 16;
    public static final int postPageSize = 8;
    public static final int gradePageSize = 12;
    public static final int commentPageSize = 16;

    //MD5加盐
    public static final String MD5_SALT = "exam";
    //分页数据
    public final static String DATA = "data";

    public final static String SPLIT_CHAR = "_~_";
}
